﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views {
    import org.robotlegs.core.*;
    import net.wooga.pets.events.*;
    import net.wooga.pets.views.components.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.models.world.*;

    public class CoinAnimationMediator extends Mediator implements IMediator {

        public var world:WorldModel;
        public var coinAnimationView:CoinAnimationView;

        override public function onRegister():void{
            eventMap.mapListener(eventDispatcher, EventConstants.SHOW_COIN_ANMIATION, this.showCoinAnimation);
        }
        private function showCoinAnimation(_arg1:InfoEvent):void{
            l(("x: " + _arg1.info.x));
            l(("y: " + _arg1.info.y));
            l(("showCoinAnimation: " + this.showCoinAnimation));
            var _local2:Number = _arg1.info.x;
            var _local3:Number = _arg1.info.y;
            var _local4:Number = 1;
            this.coinAnimationView.showCoinAnimation(_local2, _local3, _local4);
        }

    }
}//package net.wooga.pets.views 
